//: Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"


var welcome = "hello"

welcome.insert("!", at: welcome.endIndex)

welcome.insert(contentsOf: "there".characters, at: welcome.index(before: welcome.endIndex))



let romeoAndJuliet = [
    "Act 1 Scene 1: Verona, A public place",
    "Act 1 Scene 2: Capulet's mansion",
    "Act 1 Scene 3: A room in Capulet's mansion",
    "Act 1 Scene 4: A street outside Capulet's mansion",
    "Act 1 Scene 5: The Great Hall in Capulet's mansion",
    "Act 2 Scene 1: Outside Capulet's mansion",
    "Act 2 Scene 2: Capulet's orchard",
    "Act 2 Scene 3: Outside Friar Lawrence's cell",
    "Act 2 Scene 4: A street in Verona",
    "Act 2 Scene 5: Capulet's mansion",
    "Act 2 Scene 6: Friar Lawrence's cell"
]

var account = 0

for scene in romeoAndJuliet {
    if scene.hasPrefix("Act 1 ") {
        account += 1
    }
}

print(account)

let strng = "dogs🀛"

for codeUnit in strng.utf8 {
    print(codeUnit)
}


var namesIntegres = [Int : String]()

